import Vue from 'vue'
import App from './App.vue'

//引入并使用iview和router
import iview from 'iview'
import VueRouter from 'vue-router'
import 'iView/dist/styles/iView.css'
Vue.use(iview);
Vue.use(VueRouter);

const Bus = new Vue();

//在线编辑器
import VueQuillEditor from 'vue-quill-editor';
Vue.use(VueQuillEditor);

//引入配置的routes文件
import { routes } from './routes';

//路由实例化对象,将routes配置传入
const router = new VueRouter({
  routes,
  mode:'history'
});



new Vue({
  router,//将路由实例放入Vue实例
  el: '#app',
  render: h => h(App)
})
